package com.dk.feign;

import com.dk.data.Result;
import com.dk.entity.TAdminDTO;
import com.dk.feign.fallback.AdminFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(value = "dongdongershouche-admin-service",fallback = AdminFeignFallback.class)
public interface AdminFeign {

    @PostMapping("findAllAdminById")
    Result<TAdminDTO> findAllAdminById(Long id);

    @GetMapping("/admin")
    Result getInfoIdBy();
}
